package com.morizhang.merchanmanager.api.model;

import lombok.Data;

@Data
public class UnlocateCommodityModel {
    private String barCode;
    private String batchNo;
    private String productName;
    private String timeRemain;
    private int amountNow;

    public void setByStockModel(StockModel stockModel) {
        this.barCode = stockModel.getBarCode();
        this.batchNo = stockModel.getBatchNo();
        this.amountNow = stockModel.getAmountNow();
    }

    public void setByCommodityDataModel(CommodityDataModel dataModel) {
        this.productName = dataModel.getProductName();
    }
}
